package com.bdqn.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  Json 封装实体类 CommonResult
 * @param <T>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult <T>{
    private Integer code; //用来保存本次请求的状态码
    private String message; //用来保存处理信息
    private T data; //用来保存处理请求后得到的数据
    public CommonResult(Integer code,String message){
        this(code,message,null);
    }
}